﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Code.Models
{
    public partial class ProductPictureType
    {
        public string GetName(Language language)
        {
            switch (language)
            {
                case Language.Ch:
                    return this.Name_Ch;
                case Language.En:
                    return this.Name_En;
                default:
                    throw new ArgumentOutOfRangeException("language");
            }

        }
    }
}
